all:
	g++ -g -Wall -o Problem_01_PrintCommonPart Problem_01_PrintCommonPart.cpp
	g++ -g -Wall -o Problem_02_RemoveLastKthNode Problem_02_RemoveLastKthNode.cpp
	g++ -g -Wall -o Problem_03_RemoveNodeByRatio Problem_03_RemoveNodeByRatio.cpp
	g++ -g -Wall -o Problem_04_ReverseList Problem_04_ReverseList.cpp
	g++ -g -Wall -o Problem_05_ReversePartList Problem_05_ReversePartList.cpp
	g++ -g -Wall -o Problem_07_IsPalindromeList Problem_07_IsPalindromeList.cpp
	g++ -g -Wall -o Problem_08_SmallerEqualBigger Problem_08_SmallerEqualBigger.cpp
	g++ -g -Wall -o Problem_09_CopyListWithRandom Problem_09_CopyListWithRandom.cpp
	g++ -g -Wall -o Problem_10_AddTwoLinkedLists Problem_10_AddTwoLinkedLists.cpp
	g++ -g -Wall -o Problem_12_ConvertEveryKNodesInList Problem_12_ConvertEveryKNodesInList.cpp
	g++ -g -Wall -o Problem_13_RemoveRepetition Problem_13_RemoveRepetition.cpp
	g++ -g -Wall -o Problem_14_RemoveGivenValue Problem_14_RemoveGivenValue.cpp
	g++ -g -Wall -o Problem_16_ListSelectionSort Problem_16_ListSelectionSort.cpp
	g++ -g -Wall -o Problem_17_RemoveNodeWired Problem_17_RemoveNodeWired.cpp
	g++ -g -Wall -o Problem_18_InsertNumToCircularList Problem_18_InsertNumToCircularList.cpp
	g++ -g -Wall -o Problem_19_MergeTwoLinkedLists Problem_19_MergeTwoLinkedLists.cpp
	g++ -g -Wall -o Problem_20_RelocateLinkedList Problem_20_RelocateLinkedList.cpp


clean:
	rm -rf Problem_01_PrintCommonPart Problem_02_RemoveLastKthNode Problem_03_RemoveNodeByRatio Problem_04_ReverseList \
		Problem_05_ReversePartList Problem_07_IsPalindromeList Problem_08_SmallerEqualBigger \
		Problem_09_CopyListWithRandom Problem_10_AddTwoLinkedLists Problem_14_RemoveGivenValue \
		Problem_13_RemoveRepetition Problem_19_MergeTwoLinkedLists Problem_16_ListSelectionSort \
		Problem_17_RemoveNodeWired Problem_18_InsertNumToCircularList Problem_20_RelocateLinkedList \
		Problem_12_ConvertEveryKNodesInList
